package com.bp.hearthealth.pulse.lnapps.bp_di

import com.bp.hearthealth.pulse.lnapps.bp_db.bp_project.BpDataBaseManager
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_activity.bp_heart.BpHeartRateRepository
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_activity.bp_heart.BpHeartRateViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val heartRateLib = module {
    single {
        BpHeartRateRepository(BpDataBaseManager.getInstance().getHeartRate())
    }
    viewModel { BpHeartRateViewModel(get()) }
}